package com.jfm.jfmm.collector.entity.collect.result;

import com.jfm.jfmm.collector.entity.collect.Result;
import com.jfm.jfmm.collector.enums.snmp.SNMPMethod;
import com.jfm.jfmm.collector.enums.snmp.SNMPProtocol;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

/**
 * @author DYang
 * @since 2024-10-09 21:47
 * @version 1.0
 * SNMP 采集结果
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SNMPResult extends Result {

    /**
     * host
     */
    private String host;
    /**
     * 端口
     */
    private Integer port;
    /**
     * community
     */
    private String community;
    /**
     * 采集方式
     */
    private SNMPMethod method;
    /**
     * 采集协议
     */
    private SNMPProtocol protocol;



    public static SNMPResult build() {
        return new SNMPResult();
    }

    public SNMPResult host(String host) {
        this.host = host;
        return this;
    }

    public SNMPResult port(Integer port) {
        this.port = port;
        return this;
    }

    public SNMPResult method(SNMPMethod method) {
        this.method = method;
        return this;
    }

    public SNMPResult protocol(SNMPProtocol protocol) {
        this.protocol = protocol;
        return this;
    }


    public SNMPResult community(String community) {
        this.community = community;
        return this;
    }


}
